<?php
namespace api\web\model;

use think\Model;


class BannerModel extends Model
{

    protected $name = 'banner';

    public function getImageAttr($value){
         return cmf_get_image_url($value);
    }


    public function title()
    {
        return $this->hasOne(titleModel::class,'part_id','id');
    }
}